#pragma once
// CustomButton.h
#ifndef CUSTOMBUTTON_H
#define CUSTOMBUTTON_H

#include <FL/Fl_Button.H>

enum Theme {
	LIGHT,
	DARK,
	PRIMARY,
	SUCCESS,
	WARNING,
	DANGER
};

class CustomButton : public Fl_Button {
private:
	Theme theme;

	void setThemeColors(Fl_Color& bgColor, Fl_Color& borderColor, Fl_Color& textColor);

public:
	CustomButton(int x, int y, int w, int h, const char* label = nullptr, Theme initialTheme = PRIMARY);
	void setTheme(Theme newTheme);

protected:
	void draw() override;
};

#endif // CUSTOMBUTTON_H
